package org.lemon.cla.converter;

import org.lemon.cla.enums.ClubMemberStatusEnum;
import org.springframework.stereotype.Component;
import org.springframework.core.convert.converter.Converter;
@Component
class ClubMemberStatusEnumConverter implements Converter<String, ClubMemberStatusEnum> {
    @Override
    public ClubMemberStatusEnum convert(String source) {
        return ClubMemberStatusEnum.fromDescription(source);
    }
}